<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();

String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path;
%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>单点登录登录页面在本地示例</title>
 <script type="text/javascript" src="<%=basePath %>/js/jquery-2.0.3.min.js"></script>
 <script type="text/javascript" src="<%=basePath %>/js/sso_config-1.0.js"></script>
 <script type="text/javascript" src="<%=basePath %>/js/sso-1.0.js"></script>
</head>
<body>
<span id="sso_html"></span><br>
<button onclick="cancelApp()">退出</button>
<%
String username = (String) request.getSession().getAttribute("userId");
%>
<%=username %>, welcome to Pro system!!!
<script type="text/javascript">
var cookie=getCookie("FAIRY-SSO-KEY");
document.getElementById("sso_html").innerText="cookie:::"+cookie;
function cancelApp()
{
	ssoLogout();
}
</script>
</body>
</html>